package com.eastfair.pay.dto;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;

/**
 * <p>
 * 实体类
 * 退款申请
 * </p>
 *
 * @author gj
 * @since 2022-06-21
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "ApplyRefundSaveDTO", description = "退款申请")
public class ApplyRefundSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 是否启用：1是；0否
     */
    @ApiModelProperty(value = "是否启用：1是；0否")
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    /**
     * 客户id
     */
    @ApiModelProperty(value = "客户id")
    private Long cutomerId;
    /**
     * 客户名称
     */
    @ApiModelProperty(value = "客户名称")
    @Size(max = 255, message = "客户名称长度不能超过255")
    private String cutomerName;
    /**
     * 申请退款金额
     */
    @ApiModelProperty(value = "申请退款金额")
    private BigDecimal refundApplyAmount;
    /**
     * 展会id
     */
    @ApiModelProperty(value = "展会id")
    private Long exhibitionId;
    /**
     * 展会名称
     */
    @ApiModelProperty(value = "展会名称")
    @Size(max = 255, message = "展会名称长度不能超过255")
    private String exhibitionName;
    /**
     * 对方户名
     */
    @ApiModelProperty(value = "对方户名")
    @Size(max = 255, message = "对方户名长度不能超过255")
    private String bankAccountName;
    /**
     * 对方账号
     */
    @ApiModelProperty(value = "对方账号")
    @Size(max = 255, message = "对方账号长度不能超过255")
    private String bankAccountNum;
    /**
     * 对方开户行
     */
    @ApiModelProperty(value = "对方开户行")
    @Size(max = 255, message = "对方开户行长度不能超过255")
    private String bankName;
    /**
     * 退款方式（数据字典）
     */
    @ApiModelProperty(value = "退款方式（数据字典）")
    @Size(max = 255, message = "退款方式（数据字典）长度不能超过255")
    private String refundType;
    /**
     * 申请人id
     */
    @ApiModelProperty(value = "申请人id")
    private Long applicantId;
    /**
     * 申请人姓名
     */
    @ApiModelProperty(value = "申请人姓名")
    @Size(max = 255, message = "申请人姓名长度不能超过255")
    private String applicantName;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @Size(max = 255, message = "备注长度不能超过255")
    private String remart;
    /**
     * 退款时间
     */
    @ApiModelProperty(value = "退款时间")
    private LocalDateTime refundTime;
    /**
     * 退款状态   0 未退款  1 已退款
     */
    @ApiModelProperty(value = "退款状态   0 未退款  1 已退款")
    private Integer refundState;
    /**
     * 系统code
     */
    @ApiModelProperty(value = "系统code")
    @Size(max = 20, message = "系统code长度不能超过20")
    private String systemCode;
    /**
     * 业务id(结算单)
     */
    @ApiModelProperty(value = "业务id(结算单)")
    private Long businessId;
    /**
     * 结算类型#{H:合同;J:结算单;}
     */
    @ApiModelProperty(value = "结算类型")
    private String businessType;
    /**
     * 退款人
     */
    @ApiModelProperty(value = "退款人")
    @Size(max = 255, message = "退款人长度不能超过255")
    private String refundUserName;
    /**
     * 实际退款金额
     */
    @ApiModelProperty(value = "实际退款金额")
    private BigDecimal refundAmount;


    /**
     * 单号
     */
    @ApiModelProperty(value = "单号")
    private String businessNum;

    /**
     * 退款人
     */
    @ApiModelProperty(value = "退款人联系方式")
    private String applicantConcat;

    /**
     * 审核状态
     */
    @ApiModelProperty(value = "审核状态")
    private String examineState;

    /**
     * 审核人
     */
    @ApiModelProperty(value = "审核人")
    private String examiner;

    /**
     * 审核意见
     */
    @ApiModelProperty(value = "审核意见")
    private String examineReason;

    /**
     * 审核人id
     */
    @ApiModelProperty(value = "审核人id")
    private String examineId;

    /**
     * 退款类型
     */
    @ApiModelProperty(value = "退款类型")
    private String refundClassify;
    /**
     * 收款商户名
     */
    @ApiModelProperty(value = "收款商户名")
    @Size(max = 255, message = "收款商户名长度不能超过255")
    private String merchantName;
    /**
     * 商户名id
     */
    @ApiModelProperty(value = "商户名id")
    private Long merchantId;
    /**
     * 退款单号
     */
    @ApiModelProperty(value = "退款单号")
    @Size(max = 255, message = "退款单号长度不能超过255")
    private String refundNum;
    /**
     * 收款账户开户行
     */
    @ApiModelProperty(value = "收款账户开户行")
    @Size(max = 255, message = "收款账户开户行长度不能超过255")
    private String merchantBank;
    /**
     * 收款账户银行卡号
     */
    @ApiModelProperty(value = "收款账户银行卡号")
    @Size(max = 255, message = "收款账户银行卡号长度不能超过255")
    private String merchantBankNum;

    /**
     * 荆艺退款申请流水
     */
    @ApiModelProperty(value = "荆艺退款申请流水")
    private String mainno;
}
